<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('增值税发票开具申请单打印')" />
	<style type="text/css">
	body {
			overflow-x: auto;
		}
		table {
			font-size: 13px;
			font-weight:500;
			font-family: 线体;
			margin-left: 50px;
	    	border-collapse: collapse;
		}
	    table, tr, td{
		    text-align: center;
		    width: 1200px;
		    height: 40px;
		}
		.items td{ height:30px; border: 1px solid black;}
		
		@media print{
		   body {
		       height: auto !important;
		   }
		}
	</style>
</head>
<body class="white-bg">
    <table style="margin-top: 0px;">
		<!-- 打印网页时通过hidden-print隐藏元素 -->
	    <div class="text-right hidden-print">
	        <input th:value="${gcProjectSqkp.id}" type="hidden" id="id" name="id" />
            <button id="button-yes" type="button" class="btn btn-sm btn-primary" ><i class="fa fa-check"></i>审核通过</button>&nbsp;
            <button id="button-no" type="button" class="btn btn-sm btn-danger" ><i class="fa fa-remove"></i>审核拒绝</button>&nbsp;
            <button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button>
	    </div>
	    <tr>
			<td style="width: 10%">&nbsp;</td>
			<td style="width: 10%">&nbsp;</td>
			<td style="width: 10%">&nbsp;</td>
			<td style="width: 10%">&nbsp;</td>
			<td style="width: 10%">&nbsp;</td>
			<td style="width: 10%">&nbsp;</td>
			<td style="width: 10%">&nbsp;</td>
			<td style="width: 10%">&nbsp;</td>
			<td style="width: 10%">&nbsp;</td>
		</tr>
		<tr style="height: 60px;">
			<td><img style="height: 30px" src="/ruoyi.png"></td>
			<td colspan="8" style="font-size: 30px;font-family: 线体;font-weight:500;">湖北鄂能电力建设有限公司-增值税发票开具申请单</td>
		</tr>
	</table>
	<table class="items">
		<tr>
			<td style="width: 10%" ><b>项目名称</b></td>
			<td style="text-align: left;width: 60%" colspan="6" th:text="${gcProjectSqkp.xmmc}">&nbsp;</td>
<!-- 			<td style="width: 10%" ><b>项目地址</b></td> -->
<!-- 			<td style="width: 20%" colspan="2" th:text="${gcProjectSqkp.xmdz}">&nbsp;</td> -->
			<td style="width: 10%"><b>申请时间</b></td>
			<td style="width: 20%" th:text="${#dates.format(gcProjectSqkp.sqsj, 'yyyy-MM-dd')}">&nbsp;</td>
		</tr>
		<tr>
			<td ><b>项目负责人</b></td>
			<td colspan="3" th:text="${gcProjectSqkp.xmfzr}">&nbsp;</td>
			<td><b>合同金额</b></td>
			<td colspan="2" th:text="${gcProjectSqkp.htje}">&nbsp;</td>
			<td><b>项目类型</b></td>
			<td th:text="${projectType}">&nbsp;</td>
		</tr>
		<tr>
			<td rowspan="3"><b>项目信息</b></td>
			<td colspan="2"><b>发票内容</b></td>
			<td colspan="2"><b>建筑项目名称</b></td>
			<td colspan="2"><b>建筑服务发生地</b></td>
			<td><b>税率</b></td>
			<td><b>本次申请开票金额（含税）</b></td>
		</tr>
		<tr>
			<td colspan="2" th:text="${gcProjectSqkp.itemmc}">&nbsp;</td>
			<td colspan="2" th:text="${gcProjectSqkp.pname}">&nbsp;</td>
			<td colspan="2" th:text="${gcProjectSqkp.itemgg}">&nbsp;</td>
			<td ><span th:text="${gcProjectSqkp.itemsl}"></span>%&nbsp;</td>
			<td th:text="${gcProjectSqkp.itemje}">&nbsp;</td>
		</tr>
		<tr>
			<td colspan="2">&nbsp;</td>
			<td colspan="2">&nbsp;</td>
			<td colspan="2">&nbsp;</td>
			<td >&nbsp;</td>
			<td >&nbsp;</td>
		</tr>
		<tr>
			<td  rowspan="3"><b>单位信息</b></td>
			<td><b>名称/税号</b></td>
			<td colspan="7" style="text-align: left;" th:text="${gcProjectSqkp.shuih}">&nbsp;</td>
		</tr>
		<tr>
			<td  ><b>开户行/帐 号</b></td>
			<td  colspan="7" style="text-align: left;" th:text="${gcProjectSqkp.kaihuh}">&nbsp;</td>
		</tr>
		<tr>
			<td><b>地址/电话</b></td>
			<td  colspan="7" style="text-align: left;" th:text="${gcProjectSqkp.dizhi}">&nbsp;</td>
		</tr>
		<tr>
			<td ><b>已开发票时间</b></td>
			<td th:text="${#dates.format(sqkplis[0].xmfzrAt, 'yyyy-MM-dd')}">&nbsp;</td>
			<td th:text="${#dates.format(sqkplis[1].xmfzrAt, 'yyyy-MM-dd')}">&nbsp;</td>
			<td th:text="${#dates.format(sqkplis[2].xmfzrAt, 'yyyy-MM-dd')}">&nbsp;</td>
			<td th:text="${#dates.format(sqkplis[3].xmfzrAt, 'yyyy-MM-dd')}">&nbsp;</td>
			<td th:text="${#dates.format(sqkplis[4].xmfzrAt, 'yyyy-MM-dd')}">&nbsp;</td>
			<td th:text="${#dates.format(sqkplis[5].xmfzrAt, 'yyyy-MM-dd')}">&nbsp;</td>
			<td th:text="${#dates.format(sqkplis[6].xmfzrAt, 'yyyy-MM-dd')}">&nbsp;</td>
			<td ><b>合计(累计开票金额)</b></td>
		</tr>
		<tr>
			<td ><b>已开发票金额</b></td>
			<td th:text="${sqkplis[0].itemje}">&nbsp;</td>
			<td th:text="${sqkplis[1].itemje}">&nbsp;</td>
			<td th:text="${sqkplis[2].itemje}">&nbsp;</td>
			<td th:text="${sqkplis[3].itemje}">&nbsp;</td>
			<td th:text="${sqkplis[4].itemje}">&nbsp;</td>
			<td th:text="${sqkplis[5].itemje}">&nbsp;</td>
			<td th:text="${sqkplis[6].itemje}">&nbsp;</td>
			<td  th:text="${gcProjectSqkp.hej}">&nbsp;</td>
		</tr>
		<tr>
			<td colspan="2"><b>备注：</b></td>
			<td colspan="7"><b><span th:text="${gcProjectSqkp.memo}"></span></b></td>
		</tr>
	</table>
<!-- 	<table style="margin-top: 15px;"> -->
<!-- 		<tr> -->
<!-- 			<td style="width: 33%;text-align: left;"><b>项目负责人/经办人：</b><span th:text="${gcProjectSqkp.xmfzr}"></span></td> -->
<!-- 			<td style="width: 33%;text-align: left;"><b>总经理批准：</b><span th:text="${gcProjectSqkp.zjlsp}"></span></td> -->
<!-- 			<td style="width: 33%;text-align: left;"><b>财务开票人：</b><span th:text="${gcProjectSqkp.cwkpr}"></span></td> -->
<!-- 		</tr> -->
<!-- 	</table> -->
	<table style="margin-top: 15px;">
		<tr>
			<td colspan="7">
				<div align="left"><b>审批意见：</b></div></br>
				<textarea id="spyj" class="form-control"></textarea>
			</td>
		</tr>
	</table>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        function printPage() {
            window.print();
        }
        
        $("#button-yes").click(function(){
	    	$.modal.confirm("确认要审核通过吗?", function() {
	    		$.ajax({
    				url: "/gcgl/sqkp/yes",
    				type: "post",
    				data: { "ids": $("#id").val(),"spyj": $("#spyj").val() },
    				dataType: 'json',
    				success: function(data) {
    					$.operate.saveReload(data);
    				},
    				error: function(xhr, type, errorThrown) {
    					//异常处理；
    					$.modal.alert("请稍后再试！");
    					$.operate.saveReload(data);
    				}
    			});
	    	});
	    })
	    
	    $("#button-no").click(function(){
	    	$.modal.confirm("确认要审核拒绝吗?", function() {
	    		$.ajax({
    				url: "/gcgl/sqkp/no",
    				type: "post",
    				data: { "ids": $("#id").val(),"spyj": $("#spyj").val() },
    				dataType: 'json',
    				success: function(data) {
    					$.operate.saveReload(data);
    				},
    				error: function(xhr, type, errorThrown) {
    					//异常处理；
    					$.modal.alert("请稍后再试！");
    					$.operate.saveReload(data);
    				}
    			});
	    	});
	    })
    </script>
</body>
</html>